package com.ebocy.hammer.battle.fight.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractC2SMessage;

public class C2SMoveMessage extends AbstractC2SMessage{
	private short x;
	private short y;
	private byte dir;
//	private float time;

	public byte getDir() {
		return dir;
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.BATTLE_MOVE;
	}

	public void readMessage() {
		this.x = readShort();
		this.y = readShort();
		this.dir = readByte();
//		this.time = readFloat();
	}

	public short getX() {
		return x;
	}

	public short getY() {
		return y;
	}

//	public float getTime() {
//		return time;
//	}

}
